package com.zhijian.warehouse.manage.dao;

import com.zhijian.warehouse.manage.entity.po.AccessDoorDeploy;
import com.zhijian.warehouse.manage.entity.vo.request.AccessDoorDeploySearchVo;
import com.zhijian.warehouse.manage.entity.vo.response.AccessDoorDeployVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AccessDoorDeployMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccessDoorDeploy record);

    int insertSelective(AccessDoorDeploy record);

    AccessDoorDeploy selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccessDoorDeploy record);

    int updateByPrimaryKey(AccessDoorDeploy record);

    /**
     * 查询总数
     *
     * @param accessDoorDeploySearchVo
     * @return
     */
    int count(AccessDoorDeploySearchVo accessDoorDeploySearchVo);

    /**
     * 查询列表
     *
     * @param accessDoorDeploySearchVo
     * @return
     */
    List<AccessDoorDeployVo> selectList(AccessDoorDeploySearchVo accessDoorDeploySearchVo);

    /**
     * 查询单个
     *
     * @param accessDoorDeploySearchVo
     * @return
     */
    AccessDoorDeployVo selectOne(AccessDoorDeploySearchVo accessDoorDeploySearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    AccessDoorDeployVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param accessDoorDeploySearchVo
     * @return
     */
    void deleteByCondition(AccessDoorDeploySearchVo accessDoorDeploySearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<AccessDoorDeploy> entities);

    /**
     * 根据CreateUserId查询列表
     *
     * @param createUserId
     * @return
     */
    List<AccessDoorDeployVo> selectListByCreateUserId(Long createUserId);

    /**
     * 根据UpdateUserId查询列表
     *
     * @param updateUserId
     * @return
     */
    List<AccessDoorDeployVo> selectListByUpdateUserId(Long updateUserId);
}